package com.bosssoft.goods.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 购物车商品更改数据对象
 * @author Fang_Sir
 * @date 2021-04-21
 */
@Getter
@Setter
@ToString
public class StGoodUpdateVO {
    @ApiModelProperty("用户编号")
    @NotNull(message = "用户编号不得为空")
    private Long uid;

    @ApiModelProperty("商品编号")
    @NotNull(message = "商品编号不得为空")
    @JsonProperty("gid")
    private Long goodId;

    @ApiModelProperty("购买数量")
    @NotNull(message = "购买数量不得为空")
    private Integer qty;
}
